package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.CwBlindBoxBrandMapper;
import com.ruoyi.system.domain.CwBlindBoxBrand;
import com.ruoyi.system.service.ICwBlindBoxBrandService;

/**
 * 店铺管理Service业务层处理
 * 
 * @author hyx
 * @date 2024-11-22
 */
@Service
public class CwBlindBoxBrandServiceImpl implements ICwBlindBoxBrandService 
{
    @Autowired
    private CwBlindBoxBrandMapper cwBlindBoxBrandMapper;

    /**
     * 查询店铺管理
     * 
     * @param brandId 店铺管理主键
     * @return 店铺管理
     */
    @Override
    public CwBlindBoxBrand selectCwBlindBoxBrandByBrandId(Long brandId)
    {
        return cwBlindBoxBrandMapper.selectCwBlindBoxBrandByBrandId(brandId);
    }

    /**
     * 查询店铺管理列表
     * 
     * @param cwBlindBoxBrand 店铺管理
     * @return 店铺管理
     */
    @Override
    public List<CwBlindBoxBrand> selectCwBlindBoxBrandList(CwBlindBoxBrand cwBlindBoxBrand)
    {
        return cwBlindBoxBrandMapper.selectCwBlindBoxBrandList(cwBlindBoxBrand);
    }

    /**
     * 新增店铺管理
     * 
     * @param cwBlindBoxBrand 店铺管理
     * @return 结果
     */
    @Override
    public int insertCwBlindBoxBrand(CwBlindBoxBrand cwBlindBoxBrand)
    {
        return cwBlindBoxBrandMapper.insertCwBlindBoxBrand(cwBlindBoxBrand);
    }

    /**
     * 修改店铺管理
     * 
     * @param cwBlindBoxBrand 店铺管理
     * @return 结果
     */
    @Override
    public int updateCwBlindBoxBrand(CwBlindBoxBrand cwBlindBoxBrand)
    {
        return cwBlindBoxBrandMapper.updateCwBlindBoxBrand(cwBlindBoxBrand);
    }

    /**
     * 批量删除店铺管理
     * 
     * @param brandIds 需要删除的店铺管理主键
     * @return 结果
     */
    @Override
    public int deleteCwBlindBoxBrandByBrandIds(Long[] brandIds)
    {
        return cwBlindBoxBrandMapper.deleteCwBlindBoxBrandByBrandIds(brandIds);
    }

    /**
     * 删除店铺管理信息
     * 
     * @param brandId 店铺管理主键
     * @return 结果
     */
    @Override
    public int deleteCwBlindBoxBrandByBrandId(Long brandId)
    {
        return cwBlindBoxBrandMapper.deleteCwBlindBoxBrandByBrandId(brandId);
    }
}
